#ifndef ERROR_H_
#define ERROR_H_

/*----------------------------------------------------------------------------*/

/* Everything is OK */
#define ERROR_OK	0
/* Generic error code */
#define ERROR_DEFAULT	(-1)
/* Not enoguh memory, malloc error */
#define ERROR_MALLOC	(-2)
/* Already exists (for creations) */
#define ERROR_EXIST	(-3)
/* No entity, does not exists */
#define ERROR_NOENT	(-4)
/* You don't have acces permissions*/
#define ERROR_ACCES	(-5)
/* Invalid parameters */
#define ERROR_PARAMS	(-6)
/* Maximun reached */
#define ERROR_MAX	(-7)
/* Unexpected error */
#define ERROR_UNEX	(-8)
/* Not available */
#define ERROR_UNAV	(-9)
/* Busy */
#define ERROR_BUSY	(-10)
/* Another instance is running */
#define ERROR_INST	(-11)
/* Interrupted */
#define ERROR_INTR	(-12)
/* Time out */
#define ERROR_TIMEOUT	(-13)
/* End of file reached */
#define ERROR_EOF	(-14)
/* No wait ( like IPC_NOWAIT) flag was specified*/
#define ERROR_NOWAIT	(-15)

/*----------------------------------------------------------------------------*/

#endif /*ERROR_H_*/

